package com.stadium.servlet;

import java.text.ParseException;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.stadium.bean.Match;
import com.stadium.bean.PlaceOrder;

public interface MatchServlet {

	

	List<Match> findAll(Integer type);// 获取所有申请的赛事信息

	void addMatch(Match match) throws ParseException;// 添加申请赛事信息

	void deleteMatch(Integer placeId);// 删除申请场地信息

	void setType(Integer placeId, Integer type); //设置订单的状态

	List<Match> findAllByBorrowAccount(String name);

	Match findMatchByName(String name); //通过赛事名称获取赛事

	void updateMatchOrder(Match match) throws ParseException;

	Match findOne(Integer id);
}
